#include <57header.h>

int main(int argc,char*argv[])
{

    if(fork() == 0){
        printf("son_pid: %d , group_id: %d \n", getpid(), getpgrp());

        setpgid(0, 0);

        printf("son_pid: %d , group_id: %d \n", getpid(), getpgrp());

    }else{
        printf("main_pid: %d , group_id: %d \n", getpid(), getpgrp());
        wait(NULL);
    }

    return 0;
}

